package com.solution.admin.promotion.constants;

/**
 * 活动相关常量定义
 * @author llp
 */
public class PromotionConstants {

	/**
	 *  活动类型
	 */
	public enum PROMOTION_TYPE {
		REDUCE("1", "满减"), 
		GIFT("2", "满赠"), 
		DISCOUNT("3", "满折");
		
		private String code;
		private String name;

		private PROMOTION_TYPE(String code, String name) {
			this.code = code;
			this.name = name;
		}

		public String getCode() {
			return code;
		}

		public void setCode(String code) {
			this.code = code;
		}

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}

	}
	
	
	/**
	 *  活动商品类型
	 *  活动商品 活动赠品
	 */
	public enum PROMOTION_PRODUCT_TYPE {
		NORMAL("1", "活动商品"), 
		GIFT("2", "活动赠品");
		
		private String code;
		private String name;

		private PROMOTION_PRODUCT_TYPE(String code, String name) {
			this.code = code;
			this.name = name;
		}

		public String getCode() {
			return code;
		}

		public void setCode(String code) {
			this.code = code;
		}

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}

	}
	
	/**
	 * 活动规则的是否根据第一个条件逐级递增
	 * @author llp
	 *
	 */
	public enum PROMOTION_RULE_LIMIT_TYPE {
		UNLIMTED(1, "上不封顶"), 
		LIMITED(0, "限制级别");
		
		private int code;
		private String name;

		private PROMOTION_RULE_LIMIT_TYPE(int code, String name) {
			this.code = code;
			this.name = name;
		}

		public int getCode() {
			return code;
		}

		public void setCode(int code) {
			this.code = code;
		}

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}

	}
	
	
	/**
	 *  活动赠品类型
	 *  活动赠品类型
	 *  1 商品 2 优惠券 3 积分
	 */
	public enum PROMOTION_GIFT_TYPE {
		GIFT("1", "赠品"), 
		COUPON("2", "优惠券"),
		POINTS("3", "积分");
		
		private String code;
		private String name;

		private PROMOTION_GIFT_TYPE(String code, String name) {
			this.code = code;
			this.name = name;
		}

		public String getCode() {
			return code;
		}

		public void setCode(String code) {
			this.code = code;
		}

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}

	}

}
